package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.UpdateApk;
import com.mycompany.virtualApp.entity.User;
import com.mycompany.virtualApp.mapper.UpdateApkMapper;
import com.mycompany.virtualApp.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("updateApkDao")
public class UpdateApkDaoImpl implements UpdateApkDao {

    @Autowired
    private UpdateApkMapper updateApkMapper;

    @Override
    public List<UpdateApk> selectAllByParam(Map<String, Object> map) {
        return updateApkMapper.selectAllByParam(map);
    }

    @Override
    public int saveUpdateApk(UpdateApk updateApk) {
        return updateApkMapper.saveUpdateApk(updateApk);
    }

    @Override
    public int updateUpdateApk(UpdateApk updateApk) {
        return updateApkMapper.updateUpdateApk(updateApk);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return updateApkMapper.delete(map);
    }
}
